package com.yh.dp.principle.ocp;

/**
 * @ClassName NovelBook
 * @Description 书籍具体类-小说类
 * @Author 0715-YuHao
 * @Date 2021/1/2 14:55
 */
public class NovelBook implements IBook {

    private String name;
    private int price;
    private String author;

    public NovelBook() {
    }

    public NovelBook(String name, int price, String author) {
        this.name = name;
        this.price = price;
        this.author = author;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public int getPrice() {
        return price;
    }

    @Override
    public String getAuthor() {
        return author;
    }
}
